<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html >
<html>
<head>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/css/detail.css">
</head>
<body>
	<div class="basic">
	<h1>利息管理</h1>
	<form id="query" class="form-inline">
		<div class="form-group">
	      <input type="text" class="form-control" name="id" placeholder="请输入id">
	   	</div>
	   	<button type="button"  class="btn btn-primary">查询</button>
	</form>
	<div class="manage">
		<span>利息列表</span>
	</div>
	<table id="interests" class="table table-striped">
		<thead>
			<tr>
				<td>利息编号</td>
				<td>投资编号</td>
				<td>借款人是否还款</td>
				<td>本期应还本金</td>
				<td>本期应还利息</td>
				<td>本期应还本金利息</td>
				<td>本期应还时间</td>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${interests}" var="interest">
				<tr>
					<td>${interest.interestid }</td>
					<td>${interest.investid }</td>
					<td>${interest.ipaidback }</td>
					<td>${interest.imoneycurrent }</td>
					<td>${interest.iinterestcurrent }</td>
					<td>${interest.imandicurrent }</td>
					<td>
						<fmt:formatDate value="${interest.itimecurrent }" pattern="yyyy-MM-dd  HH:mm:ss" />
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</div>
</body>
</html>